package com.action.gulimall.auth.config;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author sl shilun217@qq.com
 * @Deacription 添加controller映射
 * @date 2021/06/25/16:13
 **/
@Component
public class WebConfig implements WebMvcConfigurer{


    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/login.html").setViewName("login");
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
